package org.example.myleet.p744;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue('c' == solution.nextGreatestLetter(new char[]{'c', 'f', 'j'}, 'a'));
        Assert.isTrue('f' == solution.nextGreatestLetter(new char[]{'c', 'f', 'j'}, 'c'));
        Assert.isTrue('f' == solution.nextGreatestLetter(new char[]{'c', 'f', 'j'}, 'd'));
        Assert.isTrue('e' == solution.nextGreatestLetter(new char[]{'e','e','e','e','e','e','n','n','n','n'}, 'n'));
    }
}
